/**
 * Copyright 2007-2008. Chongqing First Information & Network Co., Ltd. All
 * rights reserved. <a>http://www.cqfirst.com.cn</a>
 */
package com.cqcis.uip.base.framework.codec.impl;



import com.cqcis.uip.base.framework.codec.ObjectDecoder;
import com.cqcis.uip.base.framework.filters.adaptor.AbstractProtocolObjectDecoder;
import com.cqcis.uip.base.framework.utils.ByteBuffer;

/**
 * 解码适配器默认实现
 * 
 * @author huangmy
 * @date   2007-12-20
 */
public class DefaultProtocolObjectDecoder extends AbstractProtocolObjectDecoder {
    private ObjectDecoder decoder;
	
	protected Object doDecode(ByteBuffer buffer) throws Exception {		
		return decoder.decode(buffer);
	}

	public void setDecoder(ObjectDecoder decoder) {
		this.decoder = decoder;
	}
}
